package com.room.search.service.dto.file;

import org.springframework.web.multipart.MultipartFile;

import java.io.Serializable;

/**
 * By   : ghd.bright
 * Time : 2022/2/23
 * Description: 上传小区和房屋图片DTO
 */
public class UploadImageDTO implements Serializable {

    //小区Id
    private Long communityId;
    //房屋Id
    private Long roomId;
    //
    private MultipartFile image;

    public Long getCommunityId() {
        return communityId;
    }

    public UploadImageDTO setCommunityId(Long communityId) {
        this.communityId = communityId;
        return this;
    }

    public Long getRoomId() {
        return roomId;
    }

    public UploadImageDTO setRoomId(Long roomId) {
        this.roomId = roomId;
        return this;
    }

    public MultipartFile getImage() {
        return image;
    }

    public UploadImageDTO setImage(MultipartFile image) {
        this.image = image;
        return this;
    }

    @Override
    public String toString() {
        return "UploadImageDTO{" +
            "communityId=" + communityId +
            ", roomId=" + roomId +
            ", image=" + image +
            '}';
    }



}
